package com.decelo.jpa;

import com.decelo.jpa.kafka.Producer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

@EntityScan(basePackages = {"com.decelo.jpa.*"})
@EnableJpaRepositories(basePackages = {"com.decelo.jpa.dao"})
@ComponentScan(basePackages={"com.decelo.jpa"})
@SpringBootApplication
public class JpaApplication {

    public static void main(String[] args) {
        SpringApplication.run(JpaApplication.class, args);
        //Producer producer=new Producer();
        //producer.sendMess("topic","aaaaa");
    }


}



